package cn.edu.stu.syllabus.library.detail;

import java.util.List;

import cn.edu.stu.syllabus.base.BasePresenter;
import cn.edu.stu.syllabus.base.BaseView;
import cn.edu.stu.syllabus.base.IStorable;
import cn.edu.stu.syllabus.repository.booklocate.local.BookLocateEntry;
import cn.edu.stu.syllabus.datas.Information;

/**
 * Created by liyujie on 2017/3/28.
 */

public interface BookDetailContract {

    interface Presenter extends BasePresenter, IStorable {
        void parseHtml(String html);

        void loadBookLocates();

        void starBook();

        void unstarBook();


        boolean isStarBook();
    }

    interface View extends BaseView<Presenter> {
        void loadUrl(String url);

        void showInformation(List<Information> informations);

        void showBookLocate(List<BookLocateEntry> bookLocateEntries);

        void showLoading();

        void showError();
    }
}
